package part03_工厂模式.demo01_抽象工厂之接入多方云服务器案例;

import part03_工厂模式.demo01_抽象工厂之接入多方云服务器案例.aliyun.AliyunOssFacotry;
import part03_工厂模式.demo01_抽象工厂之接入多方云服务器案例.factory.AbstractOssFactory;
import part03_工厂模式.demo01_抽象工厂之接入多方云服务器案例.factory.product.OssImage;
import part03_工厂模式.demo01_抽象工厂之接入多方云服务器案例.factory.product.OssVideo;

/**
 * @ClassName: Client
 * @Author: AllenSun
 * @Date: 2023/2/12 下午2:04
 */
public class Client {
    public static void main(String[] args) {
        AbstractOssFactory factory = new AliyunOssFacotry();
        OssImage ossImage = factory.uploadImage(new byte[1024]);
        OssVideo ossVideo = factory.uploadVideo(new byte[1024]);

        System.out.println(ossImage.getThumb());
        System.out.println(ossImage.getWatermark());
        System.out.println(ossImage.getEnhance());
        System.out.println(ossVideo.get720p());
        System.out.println(ossVideo.get1080p());
    }

}
